package edu.tongji.jiaowu.service.impl;

import java.util.List;
import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;
import edu.tongji.jiaowu.dao.GraduateDao;
import edu.tongji.jiaowu.service.GraduateManager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class GraduateManagerImpl extends BaseManagerImpl implements GraduateManager {
	private GraduateDao graduateDao;

	public CommonBean createGraduate() {
		return graduateDao.createGraduate();
	}

	/*
	 public CommonBean findGraduates(String refid) {
	 return graduateDao.findGraduates(refid);
	 }
	 */
	public CommonBean findGraduateById(String id) {
		return graduateDao.findGraduateById(id);
	}

	public CommonBean findAllGraduates() {
		return graduateDao.findAllGraduates();
	}

	public void insertGraduate(CommonBean graduateBean) {
		graduateDao.insertGraduate(graduateBean);
	}

	public void updateGraduate(CommonBean graduateBean) {
		graduateDao.updateGraduate(graduateBean);
	}

	public void check(String graduateYear) {
		graduateDao.check(graduateYear);
	}

	public String count(String year) {
		return graduateDao.count(year);
	}
	
	public List findGraduateYears() {
		return graduateDao.findGraduateYears();
	}

	public GraduateDao getGraduateDao() {
		return graduateDao;
	}

	public void setGraduateDao(GraduateDao graduateDao) {
		this.graduateDao = graduateDao;
	}



}
